function name() {
	return "Map";
}

function execute() {
	var elems = context.elems = [];

	panda.render("test", function($) {
		context.result = $('div').map(function(k){
			elems.push(this);
			return k;
		});
	});
}

function verify() {
	var result = context.result;
	Assert.assertEquals(4, result.length, 0);
	Assert.assertEquals(0, result[0], 0);
	Assert.assertEquals(3, result[3], 0);

	var elems = context.elems;
	Assert.assertEquals(4, elems.length, 0);
	Assert.assertEquals("a", elems[0].id);
	Assert.assertEquals("d", elems[3].id);
}
